package com.atguigu.yygh.host.testmongo;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author DongYu Zhou
 * @date 2022/6/22 22:30
 */
@Component
public interface UserRepository extends MongoRepository<User,String> {

    List<User> getByNameAndAge(String name, int i);

    List<User> getByNameLike(String name);
}
